Handler's understanding and use 1. Handler's understanding and use
Directory:
Basic knowledge:
1. Android process and thread model
2. Main Android UI thread (or thread security issues)
Knowledge points:
Handler Introduction
Handler Method 1: The
Recently I have checked a lot of handler knowledge on the Internet, but I always feel that there are many problems ??
1. Why handler? (Answer: 1) send a message as planned or execute a runnanble (using the POST method), similar to a timer;2) put
Http://www.cnblogs.com/bastard/archive/2012/06/08/2541944.htmlAndroid messaging system model and handler LooperAs a large number of handler used in Android, the combination of thread makes it a large number of use forms and methods,Let me
Message, messagequeue, logoff, and handler in Android + Example 1. Several key concepts
1. messagequeue: a data structure. It is a message queue where messages are stored. Each thread can have at most one messagequeue data structure.
Messagequeue
Android Message, MessageQueue, logoff, Handler (with example), messagequeueloading
I. Several key concepts
1. MessageQueue: a data structure. It is a message queue where messages are stored. Each thread can have at most one MessageQueue data
Android Handler and HandlerThread instances
When an application is started, Android starts a main thread (that is, the UI thread) and the main thread distributes events for the UI controls in the management interface. For example, click a Button,
This article is very good, simple, the key is a junior students to analyze their own experience. This is the reason why I like this article. Please see the text below:
As a junior preparatory programmer, I learn the fun of Android is to learn from
From: http://greenboy1.iteye.com/blog/844416
I. Several key concepts
1. messagequeue: a data structure. It is a message queue where messages are stored. Each thread can have up to one
Messagequeue data structure.Messagequeue is not automatically
The collation of a post:Handler must be instantiated in the main thread? The difference between New Handler () and New Handler (Looper.getmainlooper ())If you instantiate without parameters: Handler Handler = new Handler (), then this will default
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.